1326A codeforces solution in cpp
by ujjal roy
#include<bits/stdc++.h>
using namespace std;
main()
{
int i,n,t;
cin>>t;
while(t--)
{
cin>>n;
if(n==1) cout<<"-1"<<endl;
else
{
cout<<"4";
for(i=1;i<n;i++) cout<<"3";
cout<<endl;
}
}
return 0;
}
1326A codeforces solution in cpp
by ujjal roy
#include<bits/stdc++.h>
using namespace std;
main()
{
int i,n,t;
cin>>t;
while(t--)
{
cin>>n;
if(n==1) cout<<"-1"<<endl;
else
{
cout<<"4";
for(i=1;i<n;i++) cout<<"3";
cout<<endl;
}
}
return 0;
}
0 Comments